<table frame="border" rules="all">
<colgroup valign="middle" span="1" >
	<col align="left" />
	<col align="right" width="70" />
	<col align="right" width="60" />
	<col align="right" width="100"/>
</colgroup>

<thead>
	<tr>
		<th>Produkt</th>
		<th>Cena</th>
		<th>Ilość</th>
		<th>Wartość</th>
	</tr>
</thead>

<tbody>
	<?php
		$baseUrl = (string) $this->baseUrl();
		foreach($this->products as $product):
			$id = $product['id'];
	?>
	<tr>
		<td><a href="<?php print $this->absoluteUrl(array('alias' => $product['alias']), 'shop-product')?>"><?php print $this->escape($product['name']);?></a></td>
		<td>
			<?php if (@$product['promotion']):?>
				<del><?php print $this->price(@$product['raw_price'])?></del>
			<?php endif;?>

			<span><?php print $this->price($product['price'])?></span>
			<span class="kx_currency">zł</span>
		</td>
		<td><?php print $product['amount']?></td>
		<td><?php print $this->price($product['totalprice']);?> <span class="kx_currency">zł</span></td>
	</tr>
	<?php endforeach;?>
</tbody>

<tfoot>
	<tr>
		<td colspan="3" align="right">
			Kwota do zapłaty
		</td>
		<td><b><?php print $this->price($this->totalPrice)?> <span class="kx_currency">zł</span></b></td>
	</tr>
</tfoot>

</table>